$defult-color: #4B98CF;
$disable-color: #6c757d;
$success-color: #4EB4A5;
$danger-color: #dc3545;
$warning-color: #E3AA75;
$info-color: #4B98CF;
$light-border-color: #DCE0E2;
$dark-color: #1A3142;

.ant-table{
  .ant-table-content{
    .ant-table-body{
      .ant-table-tbody{
        .ant-table-row{
          td{
            padding: 9px 11px;
            .ant-btn{
              padding: 0 12px;
              height: 29px;
              border-radius: 5px;
              span{
                font-size: 13px;
              }
            }
          }
        }
      }
    }
  }
}

.ant-table-body-outer{
  .ant-table-fixed{
    .ant-table-tbody{
      tr{
        td{
          padding: 9px 11px;
          .ant-btn{
            padding: 0 12px;
            height: 29px;
            span{
              font-size: 14px;
            }
          }
        }
      }
    }
  }
}

.ant-btn {
  &:hover{
    border-color: $defult-color;
    color: $defult-color;
  }
  &[disabled] {
    background-color: #f5f5f5 !important;
    border-color: #d9d9d9 !important;
    &:hover{
      color:rgba(0, 0, 0, 0.25)!important;
    }
  }
  &.ant-btn-primary{
    background-color: $defult-color;
    border-color: $defult-color;
    &:hover{
      color: #fff;
    }
  }
  &.ant-btn-danger{
    background-color: $danger-color;
    border-color: $danger-color;
    &:hover{
      color: #fff;
    }
  }
}

.ant-tag{
  &.info{
    background-color: #fff;
    border-color: $light-border-color;
  }
  &.success{
    background-color: $success-color;
    border-color: $success-color;
    color: #fff;
  }
  &.danger{
    background-color: $danger-color;
    border-color: $success-color;
    color: #fff;
  }
  &.warning{
    background-color: $warning-color;
    border-color: $warning-color;
    color: #fff;
  }
  &.dark {
    background-color: $dark-color;
    border-color: $dark-color;
    color: #fff;
  }
}

.info{
  color: $info-color;
}
.warning{
  color: $warning-color;
}
.danger{
  color: $danger-color;
}
.success{
  color: $success-color;
}

.ant-tabs {
  .ant-tabs-nav-wrap{
    .ant-tabs-tab{
      &:hover{
        color: $defult-color;
      }
      &.ant-tabs-tab-active{
        color: $defult-color;
      }
    }

  }
}

.side-menu{
  .ant-menu-submenu{
    .ant-menu{
      .ant-menu-item{
        &.ant-menu-item-selected{
          background-color: $defult-color;
        }
      }
    }
  }
  .ant-menu-item{
    &.ant-menu-item-selected{
      background-color: $defult-color;
    }
  }
}

.ant-menu-submenu-popup {
  &.ant-menu-dark {
    .ant-menu-item-selected {
      background-color: $defult-color;
    }
  }
}

.ant-pagination{
  .ant-pagination-item,.ant-pagination-prev,.ant-pagination-next{
    &:hover{
      border-color: $defult-color;
    }
    a{
      &:hover{
        color: $defult-color;
      }
    }
  }
  .ant-pagination-item-active{
      border-color: $defult-color;
      a{
        color: $defult-color;
      }
  }
}

.ant-switch{
  &.ant-switch-checked{
    background-color: $defult-color;
  }
}
.header-text{
  &:hover{
    color: $defult-color;
  }
}

.ant-calendar{
  .ant-calendar-date-panel{
    .ant-calendar-selected-day{
      .ant-calendar-date{
        background-color: $defult-color;
      }
    }
    .ant-calendar-today{
      .ant-calendar-date{
        color: $defult-color;
        border-color: $defult-color;
      }
      &.ant-calendar-selected-day{
        .ant-calendar-date{
          color: #fff;
          border-color: $defult-color;
        }
      }
    }
  }
  .ant-calendar-footer-btn{
    .ant-calendar-time-picker-btn{
      color: $defult-color;
      &.ant-calendar-time-picker-btn-disabled{
        color: rgba(0, 0, 0, 0.25);
        &:hover{
          cursor: not-allowed;
        }
      }
    }
    .ant-calendar-ok-btn{
      background-color: $defult-color;
      border-color: $defult-color;
      &.ant-calendar-ok-btn-disabled{
        color: rgba(0, 0, 0, 0.25);
        background-color: #f5f5f5;
        border-color: #d9d9d9;
        &:hover{
          cursor: not-allowed;
        }
      }
    }
  }
}
